package bjut.zrpc.core.optimization.interfaces;


import bjut.zrpc.core.optimization.annotation.SPI;

/**
 * @Author: zhuzhiming
 * @Date: 2022/6/24 0:34
 */
@SPI(value = "hessian")
public interface Serializer {

    byte[] serialize(Object data);

    <T> T deSerialize(byte[] bytes, Class<T> cls);

}
